package com.etoak.stock.mapper;

import com.etoak.stock.pojo.entity.SysUserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 孙有泽
* @description 针对表【sys_user_role(用户角色表)】的数据库操作Mapper
* @createDate 2024-09-15 19:14:18
* @Entity com.etoak.stock.pojo.entity.SysUserRole
*/
public interface SysUserRoleMapper {

    int deleteByPrimaryKey(Long id);

    int insert(SysUserRole record);

    int insertSelective(SysUserRole record);

    SysUserRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUserRole record);

    int updateByPrimaryKey(SysUserRole record);

    List<String> getUserRolesById(@Param("userId") String userId);

    int deleteUserRole(@Param("userId") String userId);
    int updateUserRole(@Param("sysUserRoles") List<SysUserRole> sysUserRoles);

    int deleteUserRoleByRoleId(@Param("roleId") Long roleId);
}
